package com.cinema.entity;

import java.math.BigDecimal;

/**
 * 订单座位实体类
 */
public class OrderSeat {
    private Integer id;
    private Integer orderId;
    private Integer seatId;
    private BigDecimal price;
    private String status;
    
    // 关联对象
    private Order order;
    private Seat seat;
    
    // 构造方法
    public OrderSeat() {}
    
    public OrderSeat(Integer orderId, Integer seatId, BigDecimal price) {
        this.orderId = orderId;
        this.seatId = seatId;
        this.price = price;
    }
    
    // Getter和Setter方法
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public Integer getOrderId() {
        return orderId;
    }
    
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    
    public Integer getSeatId() {
        return seatId;
    }
    
    public void setSeatId(Integer seatId) {
        this.seatId = seatId;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public Order getOrder() {
        return order;
    }
    
    public void setOrder(Order order) {
        this.order = order;
    }
    
    public Seat getSeat() {
        return seat;
    }
    
    public void setSeat(Seat seat) {
        this.seat = seat;
    }
    
    @Override
    public String toString() {
        return "OrderSeat{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", seatId=" + seatId +
                ", price=" + price +
                ", status='" + status + '\'' +
                '}';
    }
}
